package com.tongtong.stsuserapi.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("User")
@ApiModel(value = "用户")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class User implements Serializable {
	private static final long serialVersionUID = 2342342523L;

	@ApiModelProperty("ID主键")
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Long id;
	@ApiModelProperty("逻辑删除 (0为删除,1为正常)")
	private Integer state;
	@ApiModelProperty("性别(0为男,1为女)")
	private Integer gender;
	@ApiModelProperty("评分(0-5)")
	private Double score;

	@ApiModelProperty("用户名")
	private String username;
	@ApiModelProperty("密码")
	@JsonIgnore
	private String password;
	@ApiModelProperty("地址")
	private String address;
	@ApiModelProperty("手机号")
	private String phone;
	@ApiModelProperty("头像url")
	private String headUrl;
	@ApiModelProperty("邮箱")
	private String email;
	@ApiModelProperty("QQ")
	private String qq;
	@ApiModelProperty("微信")
	private String wechat;

}
